Ignore ggas that don't have the fix field filled out at all.
authorrobertl <robertl>
Tue, 2 Sep 2008 08:36:21 +0000 (08:36 +0000)
committerrobertl <robertl>
Tue, 2 Sep 2008 08:36:21 +0000 (08:36 +0000)
nmea.c

diff --git a/nmea.c b/nmea.c
index 4143e9dffd643f15d9c723d17b17734e77bdac05..1f69556275acfbb521bc3503f2ca39151bfa6c53 100644 (file)
--- a/nmea.c
+++ b/nmea.c
@@ -448,7 +448,7 @@ gpgga_parse(char *ibuf)
         * as serial units will often spit a remembered position up and
         * that is more comfortable than nothing at all...
         */
-       if ((fix == 0) && (read_mode != rm_serial)) {
+       if ((fix <= 0) && (read_mode != rm_serial)) {
                return;
        }